package oopday09;
//getter和setter
public class GetterSetterDemo {
    public static void main(String[] args) {
        Student zs = new Student();
        zs.setName("张三");
        zs.setAge(108);
        System.out.println(zs.getName());
        System.out.println(zs.getAge());

        Student ls = new Student();
        ls.setAge(99);
        ls.setName("李四");
        System.out.println(ls.getAge());
        System.out.println(ls.getName());
    }
}
